package m.jclecai.com.view;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.TextView;

import com.gongwen.marqueen.MarqueeFactory;

import m.jclecai.com.R;

/**
 * Created by ZD on 2017/7/4.
 */

public class NoticeMFView extends MarqueeFactory<TextView,CharSequence> {

    private LayoutInflater inflater;

    public NoticeMFView(Context mContext) {
        super(mContext);
        inflater = LayoutInflater.from(mContext);
    }

    @Override
    public TextView generateMarqueeItemView(CharSequence data) {
        TextView mView = (TextView) inflater.inflate(R.layout.notice_item, null);
        mView.setText(data);
        return mView;
    }
}
